package com.itjin.utils;

import com.itjin.model.domain.entity.User;

public class UserHolder {
  private static final ThreadLocal<User> tl = new ThreadLocal<>();

  public static void saveUser(User user) {
    tl.set(user);
  }

  public static User getCurrentUser() {
    return tl.get();
  }

  public static void removeUser() {
    tl.remove();
  }
}